<?xml version="1.0" encoding="utf-8"?>
<WITD application="Work item type editor" version="1.0">
  <WORKITEMTYPE name="Code Review Response">
    <DESCRIPTION>Includes information about some code identified as needing work during a code review</DESCRIPTION>
    <FIELDS>
      <FIELD reportable="dimension" type="String" name="Title" refname="System.Title">
        <HELPTEXT>Short description of the task used to differentiate it in a list or report</HELPTEXT>
        <REQUIRED />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="State" refname="System.State">
        <HELPTEXT>The workflow state of the task</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="Integer" name="Rev" refname="System.Rev" />
      <FIELD reportable="dimension" type="String" name="Changed By" refname="System.ChangedBy">
        <VALIDUSER />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Issue" refname="Microsoft.VSTS.Common.Issue">
        <HELPTEXT>Used to highlight a task, e.g., to mark it as an issue</HELPTEXT>
        <REQUIRED />
        <ALLOWEDVALUES>
          <LISTITEM value="Yes" />
          <LISTITEM value="No" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="No" />
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="State Change Date" refname="Microsoft.VSTS.Common.StateChangeDate">
        <WHENCHANGED field="System.State">
          <SERVERDEFAULT from="clock" />
        </WHENCHANGED>
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Activated Date" refname="Microsoft.VSTS.Common.ActivatedDate">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Activated By" refname="Microsoft.VSTS.Common.ActivatedBy">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Reason" refname="System.Reason">
        <HELPTEXT>The reason why the task is in the current state</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Assigned To" refname="System.AssignedTo">
        <VALIDUSER />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Work Item Type" refname="System.WorkItemType" />
      <FIELD reportable="dimension" type="DateTime" name="Closed Date" refname="Microsoft.VSTS.Common.ClosedDate">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Closed By" refname="Microsoft.VSTS.Common.ClosedBy">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Rank" refname="Microsoft.VSTS.Common.Rank">
        <HELPTEXT>Stack rank to prioritize work</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Created Date" refname="System.CreatedDate" />
      <FIELD reportable="dimension" type="String" name="Created By" refname="System.CreatedBy" />
      <FIELD reportable="dimension" type="String" name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild">
        <HELPTEXT>The build in which the task was completed</HELPTEXT>
        <SUGGESTEDVALUES>
          <LISTITEM value="&lt;None&gt;" />
        </SUGGESTEDVALUES>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Exit Criteria" refname="Microsoft.VSTS.Common.ExitCriteria">
        <HELPTEXT>Flag to determine if this scenario should be tracked as an exit criteria for the iteration</HELPTEXT>
        <REQUIRED />
        <ALLOWEDVALUES>
          <LISTITEM value="Yes" />
          <LISTITEM value="No" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="No" />
      </FIELD>
      <FIELD reportable="measure" type="Double" name="Remaining Work" refname="Microsoft.VSTS.Scheduling.RemainingWork">
        <HELPTEXT>An estimate of the number of hours remaining to complete the task</HELPTEXT>
      </FIELD>
      <FIELD reportable="measure" type="Double" name="Baseline Work" refname="Microsoft.VSTS.Scheduling.BaselineWork">
        <HELPTEXT>The number of hours of work from the baseline plan</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Start Date" refname="Microsoft.VSTS.Scheduling.StartDate">
        <HELPTEXT>The date to start the task</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Finish Date" refname="Microsoft.VSTS.Scheduling.FinishDate">
        <HELPTEXT>The date to finish the task</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Task Hierarchy" refname="Microsoft.VSTS.Scheduling.TaskHierarchy">
        <HELPTEXT>A string representing MS-Project context for the given task</HELPTEXT>
      </FIELD>
      <FIELD reportable="measure" type="Double" name="Completed Work" refname="Microsoft.VSTS.Scheduling.CompletedWork">
        <HELPTEXT>The number of hours that have been completed for this task</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Discipline" refname="Microsoft.VSTS.Common.Discipline">
        <HELPTEXT>The discipline to which the task belongs</HELPTEXT>
        <ALLOWEDVALUES>
          <LISTITEM value="Development" />
          <LISTITEM value="Test" />
          <LISTITEM value="Project Management" />
          <LISTITEM value="Requirements" />
          <LISTITEM value="Architecture" />
          <LISTITEM value="Release Management" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD type="PlainText" name="Description" refname="System.Description" />
      <FIELD type="History" name="History" refname="System.History">
        <HELPTEXT>Discussion thread and other historical information</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="CodeMember" refname="CodeReviewAddIn.CodeMember" />
      <FIELD reportable="dimension" type="String" name="CodeProject" refname="CodeReviewAddIn.CodeProject" />
      <FIELD reportable="dimension" type="String" name="CodeFile" refname="CodeReviewAddIn.CodeFile" />
      <FIELD type="Integer" name="RelatedLinkCount" refname="System.RelatedLinkCount" />
      <FIELD reportable="detail" type="Integer" name="CodeStartLine" refname="CodeReviewAddIn.CodeStartLine" />
      <FIELD reportable="detail" type="Integer" name="CodeEndLine" refname="CodeReviewAddIn.CodeEndLine" />
      <FIELD reportable="dimension" type="String" name="CodeNamespace" refname="CodeReviewAddIn.CodeNamespace" />
      <FIELD type="PlainText" name="CodeSuggestedResolution" refname="CodeReviewAddIn.CodeResolution" />
      <FIELD type="PlainText" name="CodeDescription" refname="CodeReviewAddIn.CodeDescription" />
      <FIELD type="PlainText" name="CodeSnippet" refname="CodeReviewAddIn.CodeSnippet" />
      <FIELD reportable="dimension" type="String" name="CodeClass" refname="CodeReviewAddIn.CodeClass" />
      <FIELD reportable="dimension" type="TreePath" name="Iteration Path" refname="System.IterationPath">
        <HELPTEXT>The iteration of the product with which this task is associated</HELPTEXT>
      </FIELD>
      <FIELD type="Integer" name="IterationID" refname="System.IterationId" />
      <FIELD reportable="measure" type="Integer" name="ExternalLinkCount" refname="System.ExternalLinkCount" />
      <FIELD reportable="dimension" type="String" name="Team Project" refname="System.TeamProject" />
      <FIELD reportable="measure" type="Integer" name="HyperLinkCount" refname="System.HyperLinkCount" />
      <FIELD reportable="measure" type="Integer" name="AttachedFileCount" refname="System.AttachedFileCount" />
      <FIELD type="String" name="Node Name" refname="System.NodeName" />
      <FIELD reportable="dimension" type="TreePath" name="Area Path" refname="System.AreaPath">
        <HELPTEXT>The area of the product with which this task is associated</HELPTEXT>
      </FIELD>
      <FIELD type="DateTime" name="Revised Date" refname="System.RevisedDate" />
      <FIELD reportable="dimension" type="DateTime" name="Changed Date" refname="System.ChangedDate" />
      <FIELD reportable="dimension" type="Integer" name="ID" refname="System.Id" />
      <FIELD type="Integer" name="AreaID" refname="System.AreaId" />
      <FIELD type="String" name="Authorized As" refname="System.AuthorizedAs" />
      <FIELD reportable="dimension" type="String" name="CodePriority" refname="CodeReviewAddIn.CodePriority">
        <ALLOWEDVALUES>
          <LISTITEM value="Critical" />
          <LISTITEM value="High" />
          <LISTITEM value="Medium" />
          <LISTITEM value="Low" />
          <LISTITEM value="None" />
          <LISTITEM value="Recommendation" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="Recommendation" field="CodeReviewAddIn.CodeProject" />
        <REQUIRED />
      </FIELD>
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Active">
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <EMPTY />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
              <EMPTY />
            </FIELD>
          </FIELDS>
        </STATE>
        <STATE value="Closed" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="" to="Active">
          <REASONS>
            <DEFAULTREASON value="New" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <COPY from="currentuser" />
              <VALIDUSER />
              <REQUIRED />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="System.AssignedTo">
              <DEFAULT from="currentuser" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Closed" to="Active">
          <REASONS>
            <DEFAULTREASON value="Reactivated" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <COPY from="currentuser" />
              <VALIDUSER />
              <REQUIRED />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="System.AssignedTo">
              <COPY from="field" field="Microsoft.VSTS.Common.ClosedBy" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Active" to="Closed">
          <ACTIONS>
            <ACTION value="Microsoft.VSTS.Actions.Checkin" />
          </ACTIONS>
          <REASONS>
            <REASON value="Deferred" />
            <REASON value="Obsolete" />
            <REASON value="Cut" />
            <DEFAULTREASON value="Completed" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
              <COPY from="currentuser" />
              <VALIDUSER />
              <REQUIRED />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <READONLY />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <READONLY />
            </FIELD>
          </FIELDS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="70">
            <Control FieldName="System.Title" Type="FieldControl" Label="&amp;Title:" LabelPosition="Left" />
          </Column>
        </Group>
        <Group Label="Classification">
          <Column PercentWidth="100">
            <Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="&amp;Area:" LabelPosition="Left" />
            <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="&amp;Iteration:" LabelPosition="Left" />
          </Column>
        </Group>
        <Group Label="Status">
          <Column PercentWidth="50">
            <Control FieldName="System.AssignedTo" Type="FieldControl" Label="Assi&amp;gned to:" LabelPosition="Left" />
            <Control FieldName="CodeReviewAddIn.CodePriority" Type="FieldControl" Label="&amp;Priority:" LabelPosition="Left" />
          </Column>
          <Column PercentWidth="50">
            <Control FieldName="System.State" Type="FieldControl" Label="&amp;State:" LabelPosition="Left" />
            <Control FieldName="System.Reason" Type="FieldControl" Label="&amp;Reason:" LabelPosition="Left" />
          </Column>
        </Group>
        <TabGroup>
          <Tab Label="Description">
            <Control FieldName="CodeReviewAddIn.CodeDescription" Type="HtmlFieldControl" Label="Des&amp;cription:" LabelPosition="Top" Dock="Top" />
            <Control FieldName="CodeReviewAddIn.CodeResolution" Type="HtmlFieldControl" Label="Suggested &amp;Resolution:" LabelPosition="Top" Dock="Bottom" />
          </Tab>
          <Tab Label="Code Snippet">
            <Control FieldName="System.Description" Type="HtmlFieldControl" Label="Code:" LabelPosition="Top" Dock="Fill" ReadOnly="True" />
          </Tab>
          <Tab Label="Code Details">
            <Group Label="">
              <Column PercentWidth="50">
                <Group Label="Code Member">
                  <Column PercentWidth="100">
                    <Control FieldName="CodeReviewAddIn.CodeProject" Type="FieldControl" Label="Project:" LabelPosition="Left" />
                    <Control FieldName="CodeReviewAddIn.CodeNamespace" Type="FieldControl" Label="Namespace:" LabelPosition="Left" />
                    <Control FieldName="CodeReviewAddIn.CodeClass" Type="FieldControl" Label="Class:" LabelPosition="Left" />
                    <Control FieldName="CodeReviewAddIn.CodeMember" Type="FieldControl" Label="Name:" LabelPosition="Left" />
                  </Column>
                </Group>
              </Column>
              <Column PercentWidth="50">
                <Group Label="Code File">
                  <Column PercentWidth="100">
                    <Control FieldName="CodeReviewAddIn.CodeFile" Type="FieldControl" Label="Path:" LabelPosition="Left" />
                    <Group Label="Line Numbers">
                      <Column PercentWidth="50">
                        <Control FieldName="CodeReviewAddIn.CodeStartLine" Type="FieldControl" Label="Start:" LabelPosition="Left" />
                      </Column>
                      <Column PercentWidth="50">
                        <Control FieldName="CodeReviewAddIn.CodeEndLine" Type="FieldControl" Label="End:" LabelPosition="Left" />
                      </Column>
                    </Group>
                  </Column>
                </Group>
              </Column>
            </Group>
          </Tab>
          <Tab Label="History">
            <Control FieldName="System.History" Type="WorkItemLogControl" Label="&amp;History:" LabelPosition="Top" Dock="Fill" />
          </Tab>
          <Tab Label="Links">
            <Control Type="LinksControl" LabelPosition="Top" />
          </Tab>
          <Tab Label="File Attachments">
            <Control Type="AttachmentsControl" LabelPosition="Top" />
          </Tab>
          <Tab Label="Details">
            <Group>
              <Column PercentWidth="50">
                <Group Label="General">
                  <Column PercentWidth="100">
                    <Control FieldName="Microsoft.VSTS.Common.Issue" Type="FieldControl" Label="Iss&amp;ue:" LabelPosition="Left" />
                    <Control FieldName="Microsoft.VSTS.Common.ExitCriteria" Type="FieldControl" Label="E&amp;xit criteria:" LabelPosition="Left" />
                    <Control FieldName="Microsoft.VSTS.Build.IntegrationBuild" Type="FieldControl" Label="Integration &amp;build:" LabelPosition="Left" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.TaskHierarchy" Type="FieldControl" Label="Task C&amp;ontext:" LabelPosition="Left" ReadOnly="True" />
                  </Column>
                </Group>
              </Column>
              <Column PercentWidth="50">
                <Group Label="Schedule">
                  <Column PercentWidth="100">
                    <Control FieldName="Microsoft.VSTS.Scheduling.RemainingWork" Type="FieldControl" Label="Remaining &amp;work (hours):" LabelPosition="Left" NumberFormat="DecimalNumbers" MaxLength="10" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.CompletedWork" Type="FieldControl" Label="Com&amp;pleted work (hours):" LabelPosition="Left" NumberFormat="DecimalNumbers" MaxLength="10" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.StartDate" Type="FieldControl" Label="Start Dat&amp;e:" LabelPosition="Left" ReadOnly="True" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.FinishDate" Type="FieldControl" Label="&amp;Finish Date:" LabelPosition="Left" ReadOnly="True" />
                  </Column>
                </Group>
              </Column>
            </Group>
          </Tab>
        </TabGroup>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</WITD>